package com.ai.aicontact.busi.entity;
 

import java.util.Date;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

/***************
 *author: autogen
 *version: 2016-08-22 16:41:36.492
 */
@Entity
@Table(name = "EXEC_FILE_LOG")
public class ExecFileLog implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "EXEC_FILE_LOG";

    /**${param.comment} */
	public static final String ALIAS_LOG_ID = "LOG_ID";
    /**${param.comment} */
	public static final String ALIAS_FILE_NAME = "FILE_NAME";
    /**${param.comment} */
	public static final String ALIAS_CUSTOMER_ID = "CUSTOMER_ID";
    /**${param.comment} */
	public static final String ALIAS_FILE_COUNT = "FILE_COUNT";
    /**${param.comment} */
	public static final String ALIAS_FILE_INDEX = "FILE_INDEX";
    /**${param.comment} */
	public static final String ALIAS_FILE_VERSION = "FILE_VERSION";
    /**${param.comment} */
	public static final String ALIAS_START_TIME = "START_TIME";
    /**${param.comment} */
	public static final String ALIAS_END_TIME = "END_TIME";
    /**${param.comment} */
	public static final String ALIAS_SUMMARY = "SUMMARY";
    /**${param.comment} */
	public static final String ALIAS_SUCCESS = "SUCCESS";
    /**${param.comment} */
	public static final String ALIAS_FAIL = "FAIL";
    /**${param.comment} */
	public static final String ALIAS_STATE = "STATE";
    /**${param.comment} */
	public static final String ALIAS_REMARK = "REMARK";
	
	

 	@Id 
    @GeneratedValue(strategy=GenerationType.SEQUENCE,generator="EXEC_FILE_LOG$SEQ")
	@SequenceGenerator(name="EXEC_FILE_LOG$SEQ",sequenceName="EXEC_FILE_LOG$SEQ",allocationSize=1)
	@Column(name = "LOG_ID", unique = true, nullable = false)
    public java.lang.Long logId;
  
 	@Column(name = "FILE_NAME")
    public java.lang.String fileName;
  
 	@Column(name = "CUSTOMER_ID")
    public java.lang.String customerId;
  
 	@Column(name = "FILE_COUNT")
    public java.lang.String fileCount;
  
 	@Column(name = "FILE_INDEX")
    public java.lang.String fileIndex;
  
 	@Column(name = "FILE_VERSION")
    public java.lang.String fileVersion;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "START_TIME")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date startTime;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "END_TIME")
 	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public java.util.Date endTime;
  
 	@Column(name = "SUMMARY")
    public java.lang.Long summary;
  
 	@Column(name = "SUCCESS")
    public java.lang.Long success;
  
 	@Column(name = "FAIL")
    public java.lang.Long fail;
  
 	@Column(name = "STATE")
    public java.lang.Integer state;
  
 	@Column(name = "REMARK")
    public java.lang.String remark;
  





	public java.lang.Long getLogId() {
		return this.logId;
	}
	
	public void setLogId(java.lang.Long value) {
		this.logId = value;
	}

	public java.lang.String getFileName() {
		return this.fileName;
	}
	
	public void setFileName(java.lang.String value) {
		this.fileName = value;
	}

	public java.lang.String getCustomerId() {
		return this.customerId;
	}
	
	public void setCustomerId(java.lang.String value) {
		this.customerId = value;
	}

	public java.lang.String getFileCount() {
		return this.fileCount;
	}
	
	public void setFileCount(java.lang.String value) {
		this.fileCount = value;
	}

	public java.lang.String getFileIndex() {
		return this.fileIndex;
	}
	
	public void setFileIndex(java.lang.String value) {
		this.fileIndex = value;
	}

	public java.lang.String getFileVersion() {
		return this.fileVersion;
	}
	
	public void setFileVersion(java.lang.String value) {
		this.fileVersion = value;
	}

	public java.util.Date getStartTime() {
		return this.startTime;
	}
	
	public void setStartTime(java.util.Date value) {
		this.startTime = value;
	}

	public java.util.Date getEndTime() {
		return this.endTime;
	}
	
	public void setEndTime(java.util.Date value) {
		this.endTime = value;
	}

	public java.lang.Long getSummary() {
		return this.summary;
	}
	
	public void setSummary(java.lang.Long value) {
		this.summary = value;
	}

	public java.lang.Long getSuccess() {
		return this.success;
	}
	
	public void setSuccess(java.lang.Long value) {
		this.success = value;
	}

	public java.lang.Long getFail() {
		return this.fail;
	}
	
	public void setFail(java.lang.Long value) {
		this.fail = value;
	}

	public java.lang.Integer getState() {
		return this.state;
	}
	
	public void setState(java.lang.Integer value) {
		this.state = value;
	}

	public java.lang.String getRemark() {
		return this.remark;
	}
	
	public void setRemark(java.lang.String value) {
		this.remark = value;
	}


	
	public ExecFileLog() {
	}
	
	public ExecFileLog(boolean qryflag) {
	    if(qryflag){
	    		this.logId = null;
				this.fileName = null;
				this.customerId = null;
				this.fileCount = null;
				this.fileIndex = null;
				this.fileVersion = null;
				this.startTime = null;
				this.endTime = null;
				this.summary = null;
				this.success = null;
				this.fail = null;
				this.state = null;
				this.remark = null;
			    }
	}


	public ExecFileLog(
	    java.lang.Long inLogId,
	    java.lang.String inFileName,
	    java.lang.String inCustomerId,
	    java.lang.String inFileCount,
	    java.lang.String inFileIndex,
	    java.lang.String inFileVersion,
	    java.util.Date inStartTime,
	    java.util.Date inEndTime,
	    java.lang.Long inSummary,
	    java.lang.Long inSuccess,
	    java.lang.Long inFail,
	    java.lang.Integer inState,
		java.lang.String inRemark
	 ) {
		super();
				this.logId = inLogId;
				this.fileName = inFileName;
				this.customerId = inCustomerId;
				this.fileCount = inFileCount;
				this.fileIndex = inFileIndex;
				this.fileVersion = inFileVersion;
				this.startTime = inStartTime;
				this.endTime = inEndTime;
				this.summary = inSummary;
				this.success = inSuccess;
				this.fail = inFail;
				this.state = inState;
				this.remark = inRemark;
			}
	// 查询时所用

		private Date execFileLogDateStart;
		private Date execFileLogDateEnd;
		
		@Transient
		public Date getExecFileLogDateStart() {
			return execFileLogDateStart;
		}

		public void setExecFileLogDateStart(Date execFileLogDateStart) {
			this.execFileLogDateStart = execFileLogDateStart;
		}
		
		@Transient
		public Date getExecFileLogDateEnd() {
			return execFileLogDateEnd;
		}

		public void setExecFileLogDateEnd(Date execFileLogDateEnd) {
			this.execFileLogDateEnd = execFileLogDateEnd;
		}
		
		
		

 


}

